package com.amado.course31;

/**
 * 可变参数
 * 
 * @author Administrator
 *
 */
public class ChangeParamLength {
	public static boolean anyIsNullArary(String[] array) {
		if(array==null){
			return true;
		}
		for (String temp : array) {
			if(temp==null){
				return true;
			}
			System.out.print(temp+"\t");
		}
		return false;
	}

	public static boolean anyIsNull(String... array) {
		if(array==null){
			return true;
		}
		for (String temp : array) {
			if(temp==null){
				return true;
			}
			System.out.print(temp+"\t");
		}
		return false;
	}

	public static void main(String[] args) {

		anyIsNullArary(new String[] { "a", "b", "c" });
		System.out.println();
		anyIsNull("a", "b", "c");
	}
}
